
/** acl indexes **/
db.getCollection("acl").ensureIndex({
  "_id": NumberInt(1)
},[
  
]);

/** coin_locked_log indexes **/
db.getCollection("coin_locked_log").ensureIndex({
  "_id": NumberInt(1)
},[
  
]);

/** coin_log indexes **/
db.getCollection("coin_log").ensureIndex({
  "_id": NumberInt(1)
},[
  
]);

/** role indexes **/
db.getCollection("role").ensureIndex({
  "_id": NumberInt(1)
},[
  
]);

/** user indexes **/
db.getCollection("user").ensureIndex({
  "_id": NumberInt(1)
},[
  
]);

/** user_level indexes **/
db.getCollection("user_level").ensureIndex({
  "_id": NumberInt(1)
},[
  
]);

/** user_level indexes **/
db.getCollection("user_level").ensureIndex({
  "site_id": 1
},[
  
]);

/** acl records **/
db.getCollection("acl").insert({
  "_id": "site",
  "items": [
    {
      "name": "网站设置",
      "desc": "网站设置"
    },
    {
      "name": "SEO设置",
      "desc": "SEO设置"
    },
    {
      "name": "水印设置",
      "desc": "水印设置"
    }
  ],
  "name": "网站配置",
  "sys": "YU"
});
db.getCollection("acl").insert({
  "_id": "user",
  "items": [
    {
      "name": "用户管理",
      "desc": "用户管理"
    },
    {
      "name": "权限分配",
      "desc": "权限分配"
    }
  ],
  "name": "用户管理",
  "sys": "YU"
});
db.getCollection("acl").insert({
  "_id": "goods",
  "items": [
    {
      "name": "商品分类管理",
      "desc": "商品分类管理"
    },
    {
      "name": "商品管理",
      "desc": "商品管理"
    },
    {
      "name": "商品属性管理",
      "desc": "商品属性管理"
    },
    {
      "name": "订单管理",
      "desc": "订单管理"
    },
    {
      "name": "发货管理",
      "desc": "发货管理"
    },
    {
      "name": "库存管理",
      "desc": "库存管理"
    },
    {
      "name": "支付管理",
      "desc": "支付管理"
    },
    {
      "name": "物流管理",
      "desc": "物流管理"
    }
  ],
  "name": "商品管理",
  "sys": "YU"
});
db.getCollection("acl").insert({
  "_id": "gift",
  "items": [
    {
      "name": "礼品分类管理",
      "desc": "礼品分类管理"
    },
    {
      "name": "礼品管理",
      "desc": "礼品管理"
    }
  ],
  "name": "礼品管理",
  "sys": "YU"
});
db.getCollection("acl").insert({
  "_id": "coin",
  "items": [
    {
      "name": "积分管理",
      "desc": "积分管理"
    },
    {
      "name": "积分活动管理",
      "desc": "积分活动管理"
    }
  ],
  "name": "积分管理",
  "sys": "YU"
});
db.getCollection("acl").insert({
  "_id": "article",
  "items": [
    {
      "name": "文章分类管理",
      "desc": "文章分类管理"
    },
    {
      "name": "文章管理",
      "desc": "文章管理"
    },
    {
      "name": "文章评论管理",
      "desc": "文章评论管理"
    }
  ],
  "name": "文章管理",
  "sys": "YU"
});

/** coin_locked_log records **/

/** coin_log records **/

/** role records **/
db.getCollection("role").insert({
  "_id": "9E6CB90CA23A4007BB2FE7E3BBC68FB7",
  "acl": {
    "site": 7,
    "user": 3,
    "goods": 1,
    "gift": 2,
    "coin": 2,
    "article": 6
  },
  "desc": "文章、网站、用户管理权限",
  "description": "文章、网站、用户管理权限",
  "name": "企业网站",
  "site_id": "E197354C985448EEB549DD64BF3E20B9",
  "system": "yulin"
});
db.getCollection("role").insert({
  "_id": "E856F48F0DD94105A5088F56ED4C62F3",
  "acl": {
    "site": 7,
    "user": 3,
    "goods": 255,
    "gift": 3,
    "coin": 3,
    "article": 3
  },
  "desc": "商城管理员11",
  "name": "商城管理员",
  "site_id": "E197354C985448EEB549DD64BF3E20B9"
});
db.getCollection("role").insert({
  "_id": "E856F48F0DD94105A5088F56ED4C62F4",
  "acl": {
    "site": NumberInt(5),
    "user": NumberInt(1),
    "goods": NumberInt(255),
    "gift": NumberInt(3),
    "coin": NumberInt(3),
    "article": NumberInt(7)
  },
  "desc": "网站管理员",
  "name": "网站管理员",
  "site_id": "2378146C26844171BC0F9333B83C2E27"
});
db.getCollection("role").insert({
  "_id": "79C201D8CB5743C4AF7969DBFF951352",
  "acl": {
    "article": NumberInt(4)
  },
  "desc": "",
  "name": "评论管理员",
  "site_id": "2378146C26844171BC0F9333B83C2E27"
});
db.getCollection("role").insert({
  "_id": "D772C0FC57F043A3B0CF14E02020AAAF",
  "acl": {
    "article": NumberInt(2)
  },
  "desc": "",
  "name": "新闻编辑人员",
  "site_id": "2378146C26844171BC0F9333B83C2E27"
});
db.getCollection("role").insert({
  "_id": "43E9DAC9DE2C4701B67251B936CFF564",
  "acl": {
    "article": NumberInt(3)
  },
  "desc": "",
  "name": "产品编辑人员",
  "site_id": "2378146C26844171BC0F9333B83C2E27"
});

/** system.indexes records **/
db.getCollection("system.indexes").insert({
  "v": NumberInt(1),
  "key": {
    "_id": NumberInt(1)
  },
  "ns": "ucenter.acl",
  "name": "_id_"
});
db.getCollection("system.indexes").insert({
  "v": NumberInt(1),
  "key": {
    "_id": NumberInt(1)
  },
  "ns": "ucenter.coin_locked_log",
  "name": "_id_"
});
db.getCollection("system.indexes").insert({
  "v": NumberInt(1),
  "key": {
    "_id": NumberInt(1)
  },
  "ns": "ucenter.coin_log",
  "name": "_id_"
});
db.getCollection("system.indexes").insert({
  "v": NumberInt(1),
  "key": {
    "_id": NumberInt(1)
  },
  "ns": "ucenter.role",
  "name": "_id_"
});
db.getCollection("system.indexes").insert({
  "v": NumberInt(1),
  "key": {
    "_id": NumberInt(1)
  },
  "ns": "ucenter.user",
  "name": "_id_"
});
db.getCollection("system.indexes").insert({
  "v": NumberInt(1),
  "key": {
    "_id": NumberInt(1)
  },
  "ns": "ucenter.user_level",
  "name": "_id_"
});
db.getCollection("system.indexes").insert({
  "v": NumberInt(1),
  "key": {
    "site_id": 1
  },
  "ns": "ucenter.user_level",
  "name": "site_id_1"
});

/** user records **/
db.getCollection("user").insert({
  "_id": "2D512EE2EC4D4FDB8A8C2840CA0FB882",
  "coin": 0,
  "coin_locked": 0,
  "coin_total": 0,
  "email": "yvor12@yahoo.com.cn",
  "gender": 0,
  "password": "224bbc7c570f1e325f7b13c401001240",
  "roles_yulin": [
    "9E6CB90CA23A4007BB2FE7E3BBC68FB7"
  ],
  "session_expire": NumberInt(1338538879),
  "session_id": "SESSION_ID_1CCA3A65384244D8A66EE41119E60440",
  "site_id": "E197354C985448EEB549DD64BF3E20B9",
  "user_name": "ycoe12"
});
db.getCollection("user").insert({
  "_id": "29F418ED2EE14A8FAF92B61866BCC0F2",
  "coin": 0,
  "coin_locked": 0,
  "coin_total": 0,
  "email": "ycoe12@gmail.com",
  "gender": 0,
  "password": "224bbc7c570f1e325f7b13c401001240",
  "roles_yulin": [
    "9E6CB90CA23A4007BB2FE7E3BBC68FB7"
  ],
  "session_expire": NumberInt(1343306308),
  "session_id": "SESSION_ID_093DB9C5E8264C6CA65000277555C5D7",
  "site_id": "E197354C985448EEB549DD64BF3E20B9",
  "user_name": "ycoe"
});
db.getCollection("user").insert({
  "_id": "29F418ED2EE14A8FAF92B61866BCC333",
  "coin": 0,
  "coin_locked": 0,
  "coin_total": 0,
  "email": "chaoning@duoec.com",
  "gender": 0,
  "password": "224bbc7c570f1e325f7b13c401001240",
  "roles_yulin": [
    "9E6CB90CA23A4007BB2FE7E3BBC68FB7"
  ],
  "session_expire": NumberInt(1339770026),
  "session_id": "SESSION_ID_52174BDCC25B4060B7DCC1457AF1D2B3",
  "site_id": "86B4B286C57A4B7A9E50AFC41AF3AD33",
  "user_name": "chaoning"
});
db.getCollection("user").insert({
  "_id": "4415B330A1DE4CDB8A347690EB2F6AD4",
  "email": "yulin@duoec.com",
  "gender": "1",
  "password": "224bbc7c570f1e325f7b13c401001240",
  "roles_yulin": [
    "E856F48F0DD94105A5088F56ED4C62F4"
  ],
  "session_expire": NumberInt(1340984844),
  "session_id": "SESSION_ID_135D85C081E147E8B3058F326036E3BD",
  "site_id": "2378146C26844171BC0F9333B83C2E27",
  "user_name": "yulin"
});
db.getCollection("user").insert({
  "_id": "4B053E8707FD4CFBAC6E6F38E22D47C3",
  "email": "dongqing@duoec.com",
  "password": "224bbc7c570f1e325f7b13c401001240",
  "roles_yulin": [
    "9E6CB90CA23A4007BB2FE7E3BBC68FB7"
  ],
  "session_expire": NumberInt(1342802189),
  "session_id": "SESSION_ID_D65651F404B045C0A2F996015117CEF8",
  "site_id": "E861E4411FEB48A48E525B7170C2C38E",
  "user_name": "dongqing"
});
db.getCollection("user").insert({
  "_id": "72B00091771A4F9C9F87AA46BED144DF",
  "user_name": "winter",
  "site_id": "E861E4411FEB48A48E525B7170C2C38E",
  "password": "224bbc7c570f1e325f7b13c401001240",
  "email": "winter@dakuangye.com"
});
db.getCollection("user").insert({
  "_id": "F3C192AE565345B393FA40DA681A483B",
  "user_name": "ycoexu",
  "site_id": "E861E4411FEB48A48E525B7170C2C38E",
  "password": "224bbc7c570f1e325f7b13c401001240",
  "email": "ycoe12@gmail.com"
});

/** user_level records **/
db.getCollection("user_level").insert({
  "_id": "EED3BB253EE34123B345C20AF07EE9AC",
  "coin": 0,
  "name": {
    "zh_cn": "普通会员",
    "en": "Member"
  },
  "site_id": "2378146C26844171BC0F9333B83C2E27"
});
db.getCollection("user_level").insert({
  "_id": "A63AD709560C4CF6AF5029DC15E913CD",
  "coin": 1000,
  "name": {
    "zh_cn": "高级会员",
    "en": "VIP Member"
  },
  "site_id": "2378146C26844171BC0F9333B83C2E27"
});
